package com.sunshine.cloud.config;

import com.netflix.loadbalancer.IPing;
import com.netflix.loadbalancer.IRule;
import com.sunshine.cloud.system.MyPing;
import com.sunshine.cloud.system.MyRule;
import org.springframework.context.annotation.Bean;

/**
 * @author WeiHong
 * @date 2018/11/14
 */
public class MyConfig {


    @Bean
    public IRule getRule() {
        return new MyRule();
    }
    @Bean
    public IPing getPing() {
        return new MyPing();
    }
}
